/* lang.css */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999999 !important; /* رفع الأولوية للقصوى */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    pointer-events: none;
}

.toast-item {
    pointer-events: auto;
    min-width: 220px;
    max-width: 350px;
    background: rgba(28, 28, 30, 0.9); /* أغمق قليلاً للوضوح */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 0.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 10px 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    animation: iosBounceIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    
}
.toast-content {
    display: flex;
    align-items: center;
    gap: 5px; /* مسافة بين الأيقونة والنص */
    text-align: center;
    justify-content: center;
    width: 100%;
}
/* الأيقونات باستخدام FontAwesome */
.toast-item::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 18px;
}
.toast-success .toast-icon { color: #2ecc71; }
.toast-error .toast-icon { color: #e74c3c; }
.toast-warning .toast-icon { color: #f1c40f; }
.toast-info .toast-icon { color: #FF9500; }

.toast-success::before { content: "\f058"; color: #34C759; }
.toast-error::before { content: "\f06a"; color: #FF3B30; }
.toast-warning::before { content: "\f05a"; color: #FF9500; }

.toast-item.fade-out {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
    transition: all 0.4s ease-in;
}

@keyframes iosBounceIn {
    0% { opacity: 0; transform: translateY(-40px) scale(0.8); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
/* توافق الشاشات */
@media (max-width: 480px) {
    .toast-item {
        width: 85%;
        font-size: 13px;
    }
}